﻿namespace Pattern_package.Classify_data
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// the normal distribution manager
    /// </summary>
    public class Normal_dis
    {
        public double CalcNormalTODefineX(double x, double meo, double sigma)
        {
            try
            {
                return (1 / Math.Sqrt(2 * Math.PI * sigma)) * Math.Exp(-Math.Pow((x - meo), 2) / 2 * Math.Pow(sigma, 2));
            }
            catch
            {
                return 0;
            }
        }
    }
}
